package inits

import (
	"github.com/go-redis/redis/v8"
	"www.bwbdim.com/config"
	"www.bwbdim.com/global"
)

func InitRedis() {

	global.RDB = redis.NewClient(&redis.Options{
		Addr:     config.AppConfig.Redis.Addr,
		Password: config.AppConfig.Redis.Password,
		DB:       config.AppConfig.Redis.Db,
	})
}
